
/**
* @module localData
* @author: guojianbo
* @description: 本地数据存储
* @since: 2022-07-19 14:06:46
*/
Object.defineProperty(exports, "__esModule", { value: true });
var log_1 = __webpack_require__(/*! ./../utils/log */ "./src/core/utils/log.ts");
var IMSDKLocalStorageImpl;
if (false) {}
else {
    if (false) {}
    else {
        IMSDKLocalStorageImpl = __webpack_require__(/*! ./web_localstorage */ "./src/core/utils/web_localstorage.ts").default;
    }
}
var LocalData = /** @class */ (function () {
    function LocalData() {
        this.mLocalStorageImpl = null;
        try {
            if (IMSDKLocalStorageImpl) {
                this.mLocalStorageImpl = new IMSDKLocalStorageImpl();
            }
        }
        catch (error) {
            log_1.default.error('LocalData::constructor error:' + error);
        }
    }
    LocalData.prototype.set = function (key, value) {
        if (!this.mLocalStorageImpl) {
            return;
        }
        this.mLocalStorageImpl.set(key, value);
    };
    LocalData.prototype.get = function (key) {
        if (!this.mLocalStorageImpl) {
            return null;
        }
        return this.mLocalStorageImpl.get(key);
    };
    LocalData.prototype.remove = function (key) {
        if (!this.mLocalStorageImpl) {
            return;
        }
        this.mLocalStorageImpl.remove(key);
    };
    return LocalData;
}());
exports.default = new LocalData();


//# sourceURL=webpack://MTDX/./src/core/utils/localData.ts?